Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export InstrumentationAbstract from @opentelemetry/instrumentation #4507

Conversation

drewcorlin1
Copy link
Contributor

Which problem is this PR solving?

Export InstrumentationAbstract so it can be used in https://github.com/open-telemetry/opentelemetry-js-contrib/pull/1856/files. I'll need to check if items returns by getNodeAutoInstrumentations are instances of this class so I can call getModuleDefinitions on them.

Fixes # (issue)

Short description of the changes

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A

Checklist:

  • Followed the style guidelines of this project
  • Unit tests have been added
  • Documentation has been updated

@drewcorlin1 drewcorlin1 requested a review from a team February 25, 2024 19:04
Copy link

codecov bot commented Feb 25, 2024

Codecov Report

Merging #4507 (db1792b) into main (5637e2a) will increase coverage by 0.41%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4507      +/-   ##
==========================================
+ Coverage   91.99%   92.40%   +0.41%     
==========================================
  Files         320      330      +10     
  Lines        9342     9531     +189     
  Branches     1992     2036      +44     
==========================================
+ Hits         8594     8807     +213     
+ Misses        748      724      -24     

see 13 files with indirect coverage changes

@drewcorlin1
Copy link
Contributor Author

@pichlermarc do you think it'd be possible to get this in (assuming you're ok with the change of course) before the next release? Hoping to update these deps in the esbuild plugin which should be the last blocker

@pichlermarc
Copy link
Member

@drewcorlin1 hmm, does checking for InstrumentationBase not work? It extends InstrumentationAbstract 🤔

@drewcorlin1
Copy link
Contributor Author

@drewcorlin1 hmm, does checking for InstrumentationBase not work? It extends InstrumentationAbstract 🤔

Indeed it does, ignore me!

@drewcorlin1
Copy link
Contributor Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants